package ch.usi.inf.pf2.alu.nodes;

/**
 * 
 * @author Yotam Sharon
 * 
 */

public class SumNode extends IdentifierNode {

	public SumNode(Node[] arguments) {
		super(arguments);
	}

	protected double compute(double[] args) {
		double sum = 0;
		for (double d : args) {
			sum += d;
		}
		return sum;
	}

}
